package com.hsxshop.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by wangchongya on 17/7/11.
 */
@Entity
@Table( name = "news" )
public class News {

    private int id;
    private String title;
    private String url;
    private String content;
    private String publishTime;
    private int status;
    private String source;
    private String updateTime;
    private int type;
    private int displayType;
    private String imgPath;
    private Integer pictureId;
    private String imgPath2;
    private Integer pictureId2;
    private String imgPath3;
    private Integer pictureId3;

    public News(){};
    public News(int id,String title,String url,String publishTime){
        this.id=id;
        this.title=title;
        this.url=url;
        this.publishTime=publishTime;
    };

    @Id
    @GeneratedValue(generator="increment")
    @GenericGenerator(name="increment", strategy = "increment")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getDisplayType() {
        return displayType;
    }

    public void setDisplayType(int displayType) {
        this.displayType = displayType;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getPictureId() {
        return pictureId;
    }

    public void setPictureId(Integer pictureId) {
        this.pictureId = pictureId;
    }

    public String getImgPath2() {
        return imgPath2;
    }

    public void setImgPath2(String imgPath2) {
        this.imgPath2 = imgPath2;
    }

    public Integer getPictureId2() {
        return pictureId2;
    }

    public void setPictureId2(Integer pictureId2) {
        this.pictureId2 = pictureId2;
    }

    public String getImgPath3() {
        return imgPath3;
    }

    public void setImgPath3(String imgPath3) {
        this.imgPath3 = imgPath3;
    }

    public Integer getPictureId3() {
        return pictureId3;
    }

    public void setPictureId3(Integer pictureId3) {
        this.pictureId3 = pictureId3;
    }

}
